<script setup>
import { ref, onMounted } from "vue";
import launchGame from "./game/index";
const gameRef = ref(null);
let game;
onMounted(() => {
  game = launchGame(gameRef.value);
  console.log(game)
  game.events.on("loadAssets",n=>{
    console.log(n)
  })
});
</script>

<template>
  <div ref="gameRef" class="game"></div>
</template>

<style>
.game {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}
</style>
